diff options
author | Peter Zhu <[email protected]> | 2024-04-23 14:30:31 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-04-23 15:29:42 -0400 |
commit | b9109b270d129561f06bc2dcd6feaf5c43e82360 () | |
tree | fbdae06fd3fcbadf2f15e7294b41069dc407251e /dln.h | |
parent | 81433fd0f52b4214c0e788b6cd9f534b79ec03ba (diff) |
Get error from dln_open when USE_SHARED_GC
Before, if dln_open failed to open RUBY_GC_LIBRARY_PATH, it would segfault because it would try to raise an error, which cannot happen because the GC has not been initialized yet. This commit changes dln_open to return the error that occurred so the caller can handle the error.
-rw-r--r-- | dln.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ RUBY_SYMBOL_EXPORT_BEGIN char *dln_find_exe_r(const char*,const char*,char*,size_t DLN_FIND_EXTRA_ARG_DECL); char *dln_find_file_r(const char*,const char*,char*,size_t DLN_FIND_EXTRA_ARG_DECL); void *dln_load(const char*); -void *dln_open(const char *file); void *dln_symbol(void*,const char*); RUBY_SYMBOL_EXPORT_END |