diff --git a/README.md b/README.md index d6f5b628..5f56fcf1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rusty V8 Binding -V8 Version: 8.6.334 +V8 Version: 8.7.25 [![ci](https://github.com/denoland/rusty_v8/workflows/ci/badge.svg?branch=master)](https://github.com/denoland/rusty_v8/actions) [![crates](https://img.shields.io/crates/v/rusty_v8.svg)](https://crates.io/crates/rusty_v8) diff --git a/build b/build index f9d174a0..7152dcc2 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit f9d174a05aa7588a89616aed121e5f8ca12687ae +Subproject commit 7152dcc2b71e9f697f5f28563eefb570b0c9c1ae diff --git a/buildtools b/buildtools index deee1e07..c3628b70 160000 --- a/buildtools +++ b/buildtools @@ -1 +1 @@ -Subproject commit deee1e0703b6f42c3cd2ba848a988dc54ac02212 +Subproject commit c3628b70bf849930a678ef1fd4429c4543461188 diff --git a/tests/test_api.rs b/tests/test_api.rs index 6ae2a0c1..08fc2c24 100644 --- a/tests/test_api.rs +++ b/tests/test_api.rs @@ -3350,6 +3350,8 @@ extern "C" fn heap_limit_callback( current_heap_limit * 2 // Avoid V8 OOM. } +// This test might fail due to a bug in V8. The upstream bug report is at +// https://bugs.chromium.org/p/v8/issues/detail?id=10843. #[test] fn heap_limits() { let _setup_guard = setup(); @@ -3366,14 +3368,14 @@ fn heap_limits() { let scope = &mut v8::ContextScope::new(scope, context); // Allocate JavaScript arrays until V8 calls the near-heap-limit callback. - // It takes about 100-200k iterations of this loop to get to that point. + // It takes about 50-200k iterations of this loop to get to that point. for _ in 0..1_000_000 { eval( scope, r#" "hello 🦕 world" - .repeat(5) - .split("🦕", 2) + .repeat(10) + .split("🦕") .map((s) => s.split("")) .shift() "#, @@ -3400,7 +3402,8 @@ fn heap_statistics() { assert!(s.total_global_handles_size() >= s.used_global_handles_size()); assert!(s.used_heap_size() > 0); assert!(s.heap_size_limit() >= s.used_heap_size()); - assert!(s.peak_malloced_memory() >= s.malloced_memory()); + assert!(s.peak_malloced_memory() > 0); + assert!(s.malloced_memory() > 0); assert_eq!(s.number_of_native_contexts(), 0); let scope = &mut v8::HandleScope::new(isolate); diff --git a/third_party/jinja2 b/third_party/jinja2 index 3f90fa05..61cfe2ac 160000 --- a/third_party/jinja2 +++ b/third_party/jinja2 @@ -1 +1 @@ -Subproject commit 3f90fa05c85718505e28c9c3426c1ba52843b9b7 +Subproject commit 61cfe2ac6c9108534c43b4039a95a0980251f266 diff --git a/third_party/markupsafe b/third_party/markupsafe index 8f45f5cf..f2fb0f21 160000 --- a/third_party/markupsafe +++ b/third_party/markupsafe @@ -1 +1 @@ -Subproject commit 8f45f5cfa0009d2a70589bcda0349b8cb2b72783 +Subproject commit f2fb0f21ef1e1d4ffd43be8c63fc3d4928dea7ab diff --git a/third_party/zlib b/third_party/zlib index 7492de9a..d53accfb 160000 --- a/third_party/zlib +++ b/third_party/zlib @@ -1 +1 @@ -Subproject commit 7492de9a52f656b070f41968e39a6efa603590d5 +Subproject commit d53accfbd0382a98ad7378045631866449b5f92e diff --git a/tools/clang b/tools/clang index 8a232eb2..708cbfda 160000 --- a/tools/clang +++ b/tools/clang @@ -1 +1 @@ -Subproject commit 8a232eb21c25d1901794b418b8aeaae772e3cd0f +Subproject commit 708cbfda8bd0686e0f302f54f1b85896cd5881a9 diff --git a/tools/upgrade_v8.sh b/tools/upgrade_v8.sh index 08f209c5..62c72335 100644 --- a/tools/upgrade_v8.sh +++ b/tools/upgrade_v8.sh @@ -1,8 +1,8 @@ # WARNING: This is not an automated tool! This is just some commands to copy and # paste manually to upgrade V8. -export BRANCH=20200806_rusty_v8 -export COMMITDATE=2020-08-05T17:03:41.000Z +export BRANCH=20200827_rusty_v8 +export COMMITDATE=2020-08-26T18:48:51.000Z git submodule update -f git submodule foreach 'git remote rm upstream; true' && diff --git a/v8 b/v8 index ce4c3060..1f2195b4 160000 --- a/v8 +++ b/v8 @@ -1 +1 @@ -Subproject commit ce4c3060f6fbfd5ed410de314f7e83a66fd792d9 +Subproject commit 1f2195b49c6d7611165ebd149b2825f27693930c