[SERVER-23629] SpiderMonkey compromising port to AIX Created: 11/Apr/16 Updated: 13/Apr/16 Resolved: 11/Apr/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 3.2.0 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Matthieu S | Assignee: | Ramon Fernandez Marina |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
AIX |
||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
SpiderMonkey stores objects in 64 bits JSvals using punboxing, which means 17 bits are used to indicate the type and 47 bits to store a pointer to the actual value. This is fine when the pointer have no more than 47 significant bits, which is the case on x86-64, but not on Power under AIX, where mmap returns pointers in the range 0x07000000_00000000-0x07FFFFFF_FFFFFFFF (58 significant bits). This is compromising the port of MongoDB to AIX. Issue as also been reported to Mozilla (Bug 1263543). |
| Comments |
| Comment by Ramon Fernandez Marina [ 11/Apr/16 ] | |
|
Flagging this ticket as a duplicate of | |
| Comment by Ramon Fernandez Marina [ 11/Apr/16 ] | |
|
MatthieuS, AIX is not a supported platform, so even if SpiderMonkey was not an issue you should note that big-endian platforms are not supported yet. We're working on adding support for big-endian platforms to MongoDB in this development cycle, and the target date for availability is currently late 2016. Supporting AIX is not in scope for this work though, but it should pave the ground for adding support for AIX in the future – either internally or from community contributions. If anyone is interested in exploring this last option please move the discussion to the mongodb-dev group. Note you can build MongoDB without javascript support by using the following command line switches:
This should let you bypass the need for SpiderMonkey and focus on making MongoDB work in AIX. Regards, |