Mercurial > hg > truffle
comparison src/os/bsd/vm/os_bsd.cpp @ 17805:bbfbe9b06038
Merge
author | kvn |
---|---|
date | Thu, 13 Mar 2014 14:57:01 -0700 |
parents | 2b8e28fdf503 d1621038becf |
children | 62c54fcc0a35 |
comparison
equal
deleted
inserted
replaced
17804:fd1b9f02cc91 | 17805:bbfbe9b06038 |
---|---|
1554 } | 1554 } |
1555 | 1555 |
1556 return NULL; | 1556 return NULL; |
1557 } | 1557 } |
1558 #endif /* !__APPLE__ */ | 1558 #endif /* !__APPLE__ */ |
1559 | |
1560 void* os::get_default_process_handle() { | |
1561 #ifdef __APPLE__ | |
1562 // MacOS X needs to use RTLD_FIRST instead of RTLD_LAZY | |
1563 // to avoid finding unexpected symbols on second (or later) | |
1564 // loads of a library. | |
1565 return (void*)::dlopen(NULL, RTLD_FIRST); | |
1566 #else | |
1567 return (void*)::dlopen(NULL, RTLD_LAZY); | |
1568 #endif | |
1569 } | |
1559 | 1570 |
1560 // XXX: Do we need a lock around this as per Linux? | 1571 // XXX: Do we need a lock around this as per Linux? |
1561 void* os::dll_lookup(void* handle, const char* name) { | 1572 void* os::dll_lookup(void* handle, const char* name) { |
1562 return dlsym(handle, name); | 1573 return dlsym(handle, name); |
1563 } | 1574 } |