File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1163,21 +1163,21 @@ void WallProfiler::OnGCStart(v8::Isolate* isolate) {
1163
1163
gcContext = GetContextPtrSignalSafe (isolate);
1164
1164
}
1165
1165
}
1166
- gcCount.store (curCount + 1 , std::memory_order_relaxed);
1167
1166
std::atomic_signal_fence (std::memory_order_release);
1167
+ gcCount.store (curCount + 1 , std::memory_order_relaxed);
1168
1168
}
1169
1169
1170
1170
void WallProfiler::OnGCEnd () {
1171
1171
auto newCount = gcCount.load (std::memory_order_relaxed) - 1 ;
1172
1172
std::atomic_signal_fence (std::memory_order_acquire);
1173
1173
gcCount.store (newCount, std::memory_order_relaxed);
1174
+ std::atomic_signal_fence (std::memory_order_release);
1174
1175
if (newCount == 0 ) {
1175
1176
gcAsyncId = -1 ;
1176
1177
if (useCPED_) {
1177
1178
gcContext.reset ();
1178
1179
}
1179
1180
}
1180
- std::atomic_signal_fence (std::memory_order_release);
1181
1181
}
1182
1182
1183
1183
void WallProfiler::PushContext (int64_t time_from,
You can’t perform that action at this time.
0 commit comments