Closed Bug 148171 Opened 24 years ago Closed 24 years ago

js_FinishDtoa() not called unless JS_THREADSAFE is set

Categories

(Core :: JavaScript Engine, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: scole, Assigned: khanson)

References

Details

(Keywords: js1.5)

Attachments

(1 file, 1 obsolete file)

This is a follow on to bug 85267: js_FinishDtoa() is not called unless JS_THREADSAFE is set. (Since js_FinishDtoa() is only called inside js_CleanupLocks(), which is only available for JS_THREADSAFE builds.) Since js_FinishDtoa() now does memory cleanup as well, we should call it even for builds with JS_THREADSAFE not set. Patch coming up. --scole
Attached patch Proposed Patch (obsolete) — Splinter Review
Note that this patch *does not* remove the call to js_FinishDtoa from js_CleanupLocks, but adds one in JS_Shutdown for non threadsafe builds. I'm not entirely sure whether the call in js_CleanupLocks should be removed or not. --scole
Attached patch Revised patchSplinter Review
I missed an unprototyped function warning in the prior patch; this fixes that. --scole
Attachment #85622 - Attachment is obsolete: true
Nominating for JS1.5.
Keywords: js1.5
Need r=, sr= to get this patch in for JS 1.5 -
Comment on attachment 85624 [details] [diff] [review] Revised patch r=khanson
Attachment #85624 - Flags: review+
Blocks: 149801
>Ping< Just need an sr= on this one... --scole
Comment on attachment 85624 [details] [diff] [review] Revised patch sr=shaver
Attachment #85624 - Flags: superreview+
Woohoo! Thanks, shaver... Kenton, can you check this in for me, please? --scole
I think we want this on the branch as well, to keep the trunk and branch in sync; so drivers will have to be emailed also -
Comment on attachment 85624 [details] [diff] [review] Revised patch Approved for 1.0 branch; please change mozilla1.0.1+ to fixed1.0.1 when checked in. Please check in ASAP
Attachment #85624 - Flags: approval+
Keywords: mozilla1.0.1+
Target Milestone: --- → mozilla1.0.1
checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
The jslock.c change broke the Mac builds.
Oh, drat. timeless: Add a #include "jsdtoa.h" in the includes section of jslock.c to get this working again. (Can you do a mac build to try it out first, though?) --scole
Patch verified on trunk and MOZILLA_1_0_BRANCH.
Status: RESOLVED → VERIFIED
Keywords: verified1.0.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: