Closed Bug 323765 Opened 19 years ago Closed 19 years ago

Thread unsafe VarPrefix from jsopcode.c

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

References

Details

(Keywords: fixed1.8.0.7, fixed1.8.1)

Attachments

(1 file)

The current code for VarPrefix in jsopcode.c thread-unsafe as it use shared static buffer for temporary strings without any locking.
Attached patch FixSplinter Review
The patch just uses explicit "const " and "var " strings without re-using js_var_str and js_const_str.
Assignee: general → igor.bukanov
Status: NEW → ASSIGNED
Attachment #208736 - Flags: review?(brendan)
Comment on attachment 208736 [details] [diff] [review]
Fix

r=me, thanks!

/be
Attachment #208736 - Flags: review?(brendan) → review+
Blocks: js1.6rc1
I committed this on 2006-01-18.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: testcase-
Flags: blocking1.8.1?
There's a blocking1.8.1? nomination on this bug.  Should it be landed for 1.8.1?
(In reply to comment #4)
> There's a blocking1.8.1? nomination on this bug.  Should it be landed for
> 1.8.1?
> 

I guess that depends on if it gets approved for 1.8.1. I nominated it since was supposed to be in Spidermonkey 1.6 and I wanted Spidermonkey 1.6 and the 1.8.1 branch to have as much similarity as possible.
Flags: blocking1.8.1? → blocking1.8.1+
Comment on attachment 208736 [details] [diff] [review]
Fix

The patch applies as-is to 1.8.* branches
Attachment #208736 - Flags: approval1.8.1?
Attachment #208736 - Flags: approval1.8.0.6?
Attachment #208736 - Flags: approval1.8.1? → approval1.8.1+
Whiteboard: [checkin needed]
I committed the patch from comment 1 to MOZILLA_1_8_BRANCH
Keywords: fixed1.8.1
Whiteboard: [checkin needed]
Comment on attachment 208736 [details] [diff] [review]
Fix

approved for 1.8.0 branch, a=dveditz for drivers
Attachment #208736 - Flags: approval1.8.0.7? → approval1.8.0.7+
I committed the patch from comment 1 to MOZILLA_1_8_0_BRANCH
Keywords: fixed1.8.0.7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: