-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[VM - Runtime] Return nullptr when allocating a FinalizablePe…
…rsistentHandle fails" This is a reland of commit b8d4e24 How the failures were fixed: 1. My ExternalSizeLimit test crashed on msvc because I was using a 0-sized array. I have now changed that array to have size 1. 2. My ExternalSizeLimit test crashed on x64c because ExternalTypedData::MaxElements(kExternalTypedDataUint8ArrayCid) is much smaller than kMaxAddrSpaceMB/4 on x64c. I now call ExternalTypedData::New() with a length argument of 1, and just pretend that the external allocations are larger when calling FinalizablePersistentHandle::New(). Original change's description: > [VM - Runtime] Return nullptr when allocating a > FinalizablePersistentHandle fails > > This CL adds checks to ensure that the tracked total size of > externally allocated objects never exceeds the amount of memory on the > system. When the limit is exceeded, then > FinalizablePersistentHandle::New() will return nullptr. > > Resolves #49332 > > TEST=ci > > Change-Id: Ib6cc92325b1d5efcb2965098fa45cfecc90995e3 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256201 > Reviewed-by: Ben Konyi <[email protected]> > Commit-Queue: Derek Xu <[email protected]> > Reviewed-by: Siva Annamalai <[email protected]> TEST=I ran the tryjobs for the configurations that broke CI. Change-Id: I813aa74667c59a4dbec7f53440ca8d0bf21256ce Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256973 Reviewed-by: Ben Konyi <[email protected]> Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Derek Xu <[email protected]>
- Loading branch information
Showing
12 changed files
with
159 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters