From 5ea369e6a4a72bd1db6dc1fa10644d197b011c9b Mon Sep 17 00:00:00 2001 From: mraszyk <31483726+mraszyk@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:57:35 +0200 Subject: [PATCH] Increase max number of WASM globals (#237) * increase max number of WASM globals * update changelog --- spec/_attachments/interface-spec-changelog.md | 1 + spec/index.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/_attachments/interface-spec-changelog.md b/spec/_attachments/interface-spec-changelog.md index 36fbd24a5..9ddc46682 100644 --- a/spec/_attachments/interface-spec-changelog.md +++ b/spec/_attachments/interface-spec-changelog.md @@ -6,6 +6,7 @@ * Add a system API method to determine if the canister is running in replicated or non-replicated mode. * Add a system API method to burn cycles of the canister that calls this method. * Add a check that a canister receiving an ingress message is Running before the ingress message is marked as Received. +* Increase the maximum number of globals in a canister's WASM. ### 0.21.0 (2023-09-18) {#0_21_0} * Canister cycle balance cannot decrease below the freezing limit after executing `install_code` on the management canister. diff --git a/spec/index.md b/spec/index.md index 5adc5b30b..d86541602 100644 --- a/spec/index.md +++ b/spec/index.md @@ -1154,7 +1154,7 @@ In order for a WebAssembly module to be usable as the code for the canister, it - declare more than 50,000 functions, or - - declare more than 300 globals, or + - declare more than 1,000 globals, or - declare more than 16 exported custom sections (the custom section names with prefix `icp:`), or