Skip to content

Commit

Permalink
[standalone] Remove kAsanDefaultOptions.
Browse files Browse the repository at this point in the history
The test harness sets options via ASAN_OPTIONS. This makes our treatment of ASAN consistent with the other sanitizers.

Also fix a leak through RetainedReasonsWriter that this unmasked.

TEST=ci
Change-Id: I96cc6018b4859977d2bb7290b8822c91d99705cb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394665
Reviewed-by: Alexander Aprelev <[email protected]>
Commit-Queue: Ryan Macnak <[email protected]>
  • Loading branch information
rmacnak-google authored and Commit Queue committed Nov 20, 2024
1 parent 9e86286 commit a8e9cc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
1 change: 0 additions & 1 deletion runtime/bin/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ template("build_gen_snapshot") {
defines = [ "EXCLUDE_CFE_AND_KERNEL_PLATFORM" ]

sources = [
"address_sanitizer.cc",
"builtin.cc",
"builtin.h",
"error_exit.cc",
Expand Down
28 changes: 0 additions & 28 deletions runtime/bin/address_sanitizer.cc

This file was deleted.

6 changes: 4 additions & 2 deletions runtime/vm/compiler/aot/precompiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ struct RetainReasons : public AllStatic {
"signature of entry point function";
};

class RetainedReasonsWriter : public ValueObject {
class RetainedReasonsWriter : public StackResource {
public:
explicit RetainedReasonsWriter(Zone* zone)
: zone_(zone), retained_reasons_map_(zone) {}
: StackResource(Thread::Current()),
zone_(zone),
retained_reasons_map_(zone) {}

bool Init(const char* filename) {
if (filename == nullptr) return false;
Expand Down

0 comments on commit a8e9cc4

Please sign in to comment.