Closed Bug 509857 Opened 14 years ago Closed 13 years ago

get rid of LOCK_DTOA


(Core :: JavaScript Engine, defect)

Not set





(Reporter: sayrer, Assigned: jorendorff)


(Whiteboard: fixed-in-tracemonkey)


(1 file, 1 obsolete file)

we shouldn't need this
I assume we do not need to keep JS_strtod or JS_dtostr. These are both declared JS_FRIEND_API and are not in jsapi.h or used by Mozilla outside the JS engine.
Assignee: general → jorendorff
Let's try to lose the FRIENDs -- can you ask the newsgroup again? It has spam now and may be even less useful in proving no one uses an old friend API but we have to try somehow to reach embedders.

Attached patch v1 (obsolete) — Splinter Review
Who would review this, I wonder?
Attachment #414396 - Flags: review?(jwalden+bmo)
Sorry, but this patch don't apply.
Attached patch v2Splinter Review
This applies cleanly to tracemonkey tip.

If there's something else I should be targeting, I don't know what that is!
Attachment #414396 - Attachment is obsolete: true
Attachment #428883 - Flags: review?(jwalden+bmo)
Attachment #414396 - Flags: review?(jwalden+bmo)
Blocks: 551039

You need to use js_free() and js_malloc() in your patch.
No longer blocks: 551039
I'll happily update it if there are any signs of life in this bug. Waldo, will you have a chance to look at this any time soon?
Yeah, I need to get to this.  Look for this by end of day Monday at the latest.
Haven't started yet, will look at it over dinner -- hope to get this done tonight, but if my brain turns to mush (it's starting to curdle) I'll have to punt to tomorrow morning.
It looks like I don't need to make any changes here for js_free and js_malloc. 

(However, as a separate bug, jsdtoa.cpp should
  #define MALLOC js_malloc
  #define FREE   js_free
before #include-ing dtoa.c.)
Attachment #428883 - Flags: review?(jwalden+bmo) → review+
Whiteboard: fixed-in-tracemonkey
Follow-up bug for comment 10 is bug 554195.
Does it mean now that we can use Runtime per thread without JS_THREADSAFE?
(In reply to comment #13)
> Does it mean now that we can use Runtime per thread without JS_THREADSAFE?

Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.