-
-
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.
Merge branch 'master' into changelog/1.13.0
- Loading branch information
Showing
167 changed files
with
1,915 additions
and
756 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require "spec" | ||
require "../support/finalize" | ||
require "../support/interpreted" | ||
|
||
private class Inner | ||
include FinalizeCounter | ||
|
||
def initialize(@key : String) | ||
end | ||
end | ||
|
||
private class Outer | ||
@inner = Inner.new("reference-storage") | ||
end | ||
|
||
describe "Primitives: pointer" do | ||
describe ".malloc" do | ||
pending_interpreted "is non-atomic for ReferenceStorage(T) if T is non-atomic (#14692)" do | ||
FinalizeState.reset | ||
outer = Outer.unsafe_construct(Pointer(ReferenceStorage(Outer)).malloc(1)) | ||
GC.collect | ||
FinalizeState.count("reference-storage").should eq(0) | ||
end | ||
end | ||
end |
Oops, something went wrong.