Skip to content

Conversation

@singpolyma
Copy link

@singpolyma singpolyma commented Jul 24, 2024

Also need to run sqlite blocking IO inside a gc free zone.

@singpolyma singpolyma changed the title Upgrade sqlite to 3.46.0 Upgrade sqlite to 3.49.1 Mar 18, 2025
@singpolyma singpolyma changed the title Upgrade sqlite to 3.49.1 Upgrade sqlite to 3.51.2 Jan 12, 2026
@singpolyma singpolyma mentioned this pull request Jan 12, 2026
sqlite3 *sqlDb = 0;
if( (err = sqlite3_open(filename.utf8_str(),&sqlDb)) != SQLITE_OK )
__hxcpp_enter_gc_free_zone();
int err = sqlite3_open(filename.utf8_str(),&sqlDb);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conversion to utf8 here may generate a GC event, so this should happen outside the gc_free_zone and be stored in a local variable.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants