/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/debugger/debug/wasm/breakpoint-memoryestimation-concurrency.js
24 строки
894 B
Michaël Zasso
deps: update V8 to 12.8.374.13
16 авг 2024, 17:03
Не верифицирован
16 авг 2024, 17:03
9d7cd9b
Код
Авторство
О чём код?
// Copyright 2024 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Test that there is no lock-order inversion between the `allocation_mutex_` // (used by `NativeModule::EstimateCurrentMemoryConsumption`) and the `mutex_` // (used by `DebugInfoImpl::SetBreakpoint`) when running concurrently in // multiple isolates (see `run-tests.py --isolates`). d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js'); const builder = new WasmModuleBuilder(); const body_f = [kExprI32Const, 123]; const offset_in_body = body_f.indexOf(kExprI32Const); builder.addFunction('f', kSig_i_v).addBody(body_f).exportFunc(); const instance = builder.instantiate(); Debug = debug.Debug; const breakpoint = Debug.setBreakPoint(instance.exports.f, 0, offset_in_body); %EstimateCurrentMemoryConsumption();