Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 14, 2017 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/ccec99653559dd5f130e8a033fc7bdfb to your computer and use it in GitHub Desktop.
Save Whateverable/ccec99653559dd5f130e8a033fc7bdfb to your computer and use it in GitHub Desktop.
bisectable6
old=HEAD~300 https://gist.githubusercontent.com/AlexDaniel/1e2c456f006687ea7100a35b2931af41/raw/9aad30ec83728b43b5d1d134a4c0701354e2c8c5/nativehelpers-test.p6
Bisecting: 162 revisions left to test after this (roughly 7 steps)
[bb4f7a17b65e16b609986d4f98ad0fae4d9041e6] Generate release announcement for 2017.07
»»»»» Testing bb4f7a17b65e16b609986d4f98ad0fae4d9041e6
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
ok 17 - With size
ok 18 - The same
ok 19 - A ptr-sized
ok 20 - The object is-a 'Capture'
ok 21 - has two elems
ok 22 - first isa Pointer
ok 23 - Second isa Int
ok 24 - utf8-f-p works
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 99375e4aad23384d2f064662115c9fa19eb43678
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
ok 17 - With size
ok 18 - The same
ok 19 - A ptr-sized
ok 20 - The object is-a 'Capture'
ok 21 - has two elems
ok 22 - first isa Pointer
ok 23 - Second isa Int
ok 24 - utf8-f-p works
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 7599e0c3ffb2c7ef29c2994c7d212360459f14fe
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
ok 17 - With size
ok 18 - The same
ok 19 - A ptr-sized
ok 20 - The object is-a 'Capture'
ok 21 - has two elems
ok 22 - first isa Pointer
ok 23 - Second isa Int
ok 24 - utf8-f-p works
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 67455170ca50bb908f309b77e5ca579eaa21605c
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
Type check failed for return value; expected NativeCall::Types::Pointer but got Whatever (*)
in sub memcpy at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 94
in sub blob-from-pointer at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 107
in sub blob-from-carray at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 121
in block <unit> at /tmp/9m0XEQz01W line 41
# Looks like you planned 24 tests, but ran 16
»»»»» Script exit code: 255
»»»»» Bisecting by exit code
»»»»» Current exit code is 255, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5d200f1e524abf3251057752cd02fea42e983d6c
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
ok 17 - With size
ok 18 - The same
ok 19 - A ptr-sized
ok 20 - The object is-a 'Capture'
ok 21 - has two elems
ok 22 - first isa Pointer
ok 23 - Second isa Int
ok 24 - utf8-f-p works
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing bf7063d1ae8962d448ee6d273cff60aafa6314fb
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
ok 17 - With size
ok 18 - The same
ok 19 - A ptr-sized
ok 20 - The object is-a 'Capture'
ok 21 - has two elems
ok 22 - first isa Pointer
ok 23 - Second isa Int
ok 24 - utf8-f-p works
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing da4a0f50ac0a00332920e330b062d03543290fd6
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
ok 17 - With size
ok 18 - The same
ok 19 - A ptr-sized
ok 20 - The object is-a 'Capture'
ok 21 - has two elems
ok 22 - first isa Pointer
ok 23 - Second isa Int
ok 24 - utf8-f-p works
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a91ad2da854831a7a38c1d291c277191e6f9bb4b
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
Type check failed for return value; expected NativeCall::Types::Pointer but got Whatever (*)
in sub memcpy at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 94
in sub blob-from-pointer at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 107
in sub blob-from-carray at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 121
in block <unit> at /tmp/9m0XEQz01W line 41
# Looks like you planned 24 tests, but ran 16
»»»»» Script exit code: 255
»»»»» Bisecting by exit code
»»»»» Current exit code is 255, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 46ef1b5b48dd51a47a7de70d4740bcea9779a104
»»»»» Script output:
1..24
ok 1 - NativeHelpers::Blob module can be use-d ok
ok 2 - The object is-a 'utf8'
ok 3 - sizeof Blob
ok 4 - carray from blob
ok 5 - The object is-a 'NativeCall::Types::CArray'
ok 6 - Can´t get size
ok 7 - Not managed
ok 8 - shares memory
ok 9 - c-f-b managed
ok 10 - The object is-a 'NativeCall::Types::CArray'
ok 11 - Is managed
ok 12 - Correct size
ok 13 - sizeof CArray
ok 14 - The object is-a 'uint8'
ok 15 - Elems match
ok 16 - Full trip
Type check failed for return value; expected NativeCall::Types::Pointer but got Whatever (*)
in sub memcpy at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 94
in sub blob-from-pointer at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 107
in sub blob-from-carray at /home/bisectable/git/whateverable/data/all-modules/salortiz/NativeHelpers-Blob/lib/NativeHelpers/Blob.pm6 (NativeHelpers::Blob) line 121
in block <unit> at /tmp/9m0XEQz01W line 41
# Looks like you planned 24 tests, but ran 16
»»»»» Script exit code: 255
»»»»» Bisecting by exit code
»»»»» Current exit code is 255, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
46ef1b5b48dd51a47a7de70d4740bcea9779a104 is the first new commit
commit 46ef1b5b48dd51a47a7de70d4740bcea9779a104
Author: Stefan Seifert <nine@detonation.org>
Date: Mon Aug 7 11:49:03 2017 +0200
Speed up NativeCall by replacing the subroutine code in setup
Instead of overriding the subroutine's code via a CALL-ME method, we
replace the subroutine's code object ($!do) with the native calling code
in !setup. This saves the check for $!setup on each call and probably
makes the call cheaper in general.
:040000 040000 69d2411c6f8abf7aab3a7d77353facae87c93db4 1c29e170cde671fc74d8a3bec402573e79cd4d0c M lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment