Skip to content

Commit e1fb849

Browse files
Renamed to EnableObjectTraversal flag
1 parent 2d2b362 commit e1fb849

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/drjit-core

src/python/freeze.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ void FlatVariables::assign_cb(drjit::TraversableBase *traversable) {
661661
void FlatVariables::traverse(nb::handle h, TraverseContext &ctx) {
662662
recursion_guard guard(this);
663663

664-
scoped_set_flag traverse_scope(JitFlag::FreezingTraverseScope, true);
664+
scoped_set_flag traverse_scope(JitFlag::EnableObjectTraversal, true);
665665

666666
ProfilerPhase profiler("traverse");
667667
nb::handle tp = h.type();
@@ -894,7 +894,7 @@ nb::object FlatVariables::construct() {
894894
*/
895895
void FlatVariables::assign(nb::handle dst) {
896896
recursion_guard guard(this);
897-
scoped_set_flag traverse_scope(JitFlag::FreezingTraverseScope, true);
897+
scoped_set_flag traverse_scope(JitFlag::EnableObjectTraversal, true);
898898

899899
nb::handle tp = dst.type();
900900
Layout &layout = this->layout[layout_index++];
@@ -1020,7 +1020,7 @@ void FlatVariables::assign(nb::handle dst) {
10201020
* additional data to vcalls is tracked correctly.
10211021
*/
10221022
void FlatVariables::traverse_with_registry(nb::handle h, TraverseContext &ctx) {
1023-
scoped_set_flag traverse_scope(JitFlag::FreezingTraverseScope, true);
1023+
scoped_set_flag traverse_scope(JitFlag::EnableObjectTraversal, true);
10241024

10251025
// Traverse the handle
10261026
traverse(h, ctx);
@@ -1078,7 +1078,7 @@ void FlatVariables::traverse_with_registry(nb::handle h, TraverseContext &ctx) {
10781078
* Corresponds to `traverse_with_registry`.
10791079
*/
10801080
void FlatVariables::assign_with_registry(nb::handle dst) {
1081-
scoped_set_flag traverse_scope(JitFlag::FreezingTraverseScope, true);
1081+
scoped_set_flag traverse_scope(JitFlag::EnableObjectTraversal, true);
10821082

10831083
// Assign the handle
10841084
assign(dst);

0 commit comments

Comments
 (0)