Closed
Bug 568068
Opened 15 years ago
Closed 14 years ago
[OS/2] build break in js/src/jscntxt.cpp after check-in for bug 540706
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: wuno, Unassigned)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
wuno
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.9.3a5pre) Gecko/20100524 Minefield/3.7a5pre
Build Identifier:
E:/hg-src/hg/comm-central/mozilla/js/src/jscntxt.cpp: In member function 'bool js::StackSpace::init()':
E:/hg-src/hg/comm-central/mozilla/js/src/jscntxt.cpp:141: error: 'MAP_PRIVATE' was not declared in this scope
E:/hg-src/hg/comm-central/mozilla/js/src/jscntxt.cpp:142: error: 'MAP_FAILED' was not declared in this scope
E:/hg-src/hg/comm-central/mozilla/js/src/jscntxt.cpp: In member function 'void js::StackSpace::finish()':
E:/hg-src/hg/comm-central/mozilla/js/src/jscntxt.cpp:157: error: 'munmap' was not declared in this scope
make.exe[4]: *** [jscntxt.o] Error 1
These declarations are contained in sys/mman.h but for OS/2 they are uncommented (if 0).
Reproducible: Always
Comment 2•14 years ago
|
||
(In reply to comment #1)
> Rich, any ideas?
Been there, done that - but it's time to do it again: we need to write yet more OS/2-specific memory allocator/deallocator routines for use by JS. Currently, we're defaulting to the *nix implementation which uses mmap() so it's guaranteed to fail. I'll do it this weekend.
Comment 3•14 years ago
|
||
Comment 4•14 years ago
|
||
Comment on attachment 448177 [details] [diff] [review]
fixes for jscntxt & jsnativestack
>+#elif defined(XP_OS2)
>+
>+void *
>+GetNativeStackBaseImpl()
>+{
>+ PTIB ptib;
>+ PPIB ppib;
>+
>+ DosGetInfoBlocks(&ptib, &ppib);
>+ return ptib->tib_pstacklimit;
>+}
>+
> #else /* !XP_WIN */
Nit: change that !XP_WIN in the comments into XP_UNIX
Reporter | ||
Comment 6•14 years ago
|
||
Comment on attachment 448177 [details] [diff] [review]
fixes for jscntxt & jsnativestack
>+ return ptib->tib_pstacklimit;
Interestingly, I first used return ptib->tib_pstack; (like in the patch of Peter). Thought this was ok to determine the stack, but then the window of the profile manager wouldn't get drawn (only a tiny square was visible)...
With tib_pstacklimit everything works.
I'm proud to say that for the first part I tried something similar (if not the same), slowly I have the impression that I get at least a little idea how to handle such problems ;-)
Please refresh the patch as suggested by Igor. r+ with that change
Attachment #448177 -
Flags: review+
Reporter | ||
Comment 8•14 years ago
|
||
(In reply to comment #7)
> Created an attachment (id=448505) [details]
Could someone of the tracemonkey team check this in, please? New code is all in #ifdef's, so in principle should be zero risk, thanks
Keywords: checkin-needed
Reporter | ||
Comment 9•14 years ago
|
||
Comment on attachment 448505 [details] [diff] [review]
fixes for jscntxt & jsnativestack - v2
Just added r+ again as the original patch was hidden obsolete
Attachment #448505 -
Flags: review+
Comment 10•14 years ago
|
||
You bet, thanks for the fix!
http://hg.mozilla.org/tracemonkey/rev/cc6d850f4028
Keywords: checkin-needed
Whiteboard: fixed-in-tracemonkey
Comment 11•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•