bignum nogvl is offload safe. (#12132)

This commit is contained in:
Samuel Williams 2024-11-21 13:46:27 +13:00 committed by GitHub
parent 03ff7db5fe
commit 89deb38736
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-11-21 00:46:56 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>

View File

@ -2699,7 +2699,7 @@ bigdivrem_restoring(BDIGIT *zds, size_t zn, BDIGIT *yds, size_t yn)
if (bds.zn > 10000 || bds.yn > 10000) { if (bds.zn > 10000 || bds.yn > 10000) {
retry: retry:
bds.stop = Qfalse; bds.stop = Qfalse;
rb_nogvl(bigdivrem1, &bds, rb_big_stop, &bds, RB_NOGVL_UBF_ASYNC_SAFE); rb_nogvl(bigdivrem1, &bds, rb_big_stop, &bds, RB_NOGVL_UBF_ASYNC_SAFE | RB_NOGVL_OFFLOAD_SAFE);
if (bds.stop == Qtrue) { if (bds.stop == Qtrue) {
/* execute trap handler, but exception was not raised. */ /* execute trap handler, but exception was not raised. */