Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Apr 2, 2025

We already have an excellent framework for selective code reuse, so use that tool instead of a sledgehammer for inserting selective coverage and malloc instrumentation. As a small bonus, this should also be significantly more accurate by not being vulnerable to precompilation inserting incorrect (uninstrumented) contents into the caches.

@vtjnash vtjnash added the backport 1.12 Change should be backported to release-1.12 label Apr 2, 2025
@KristofferC KristofferC mentioned this pull request Apr 4, 2025
51 tasks

get_require_world() = unsafe_load(cglobal(:jl_require_world, UInt))

function gen_staged_sig(def::Method, mi::MethodInstance)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file feels like a slightly strange place to define this, but obviously not really a problem

for k = 1:length(result)
match = result[k]::Core.MethodMatch
genmethod = match.method
# no, I refuse to refuse to recurse into your cursed generated function generators and will only test one level deep here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

We already have an excellent framework for selective code reuse, so use
that tool instead of a sledgehammer for inserting selective coverage and
malloc instrumentation. As a small bonus, this should also be
significantly more accurate by not being vulnerable to precompilation
inserting incorrect (uninstrumented) contents into the caches.
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Apr 10, 2025
@vtjnash vtjnash merged commit 5fedf47 into master Apr 15, 2025
8 checks passed
@vtjnash vtjnash deleted the jn/fast-coverage branch April 15, 2025 17:10
KristofferC pushed a commit that referenced this pull request Apr 16, 2025
We already have an excellent framework for selective code reuse, so use
that tool instead of a sledgehammer for inserting selective coverage and
malloc instrumentation. As a small bonus, this should also be
significantly more accurate by not being vulnerable to precompilation
inserting incorrect (uninstrumented) contents into the caches.

(cherry picked from commit 5fedf47)
KristofferC pushed a commit that referenced this pull request Apr 16, 2025
We already have an excellent framework for selective code reuse, so use
that tool instead of a sledgehammer for inserting selective coverage and
malloc instrumentation. As a small bonus, this should also be
significantly more accurate by not being vulnerable to precompilation
inserting incorrect (uninstrumented) contents into the caches.

(cherry picked from commit 5fedf47)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Apr 25, 2025
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Apr 29, 2025
serenity4 pushed a commit to serenity4/julia that referenced this pull request May 1, 2025
We already have an excellent framework for selective code reuse, so use
that tool instead of a sledgehammer for inserting selective coverage and
malloc instrumentation. As a small bonus, this should also be
significantly more accurate by not being vulnerable to precompilation
inserting incorrect (uninstrumented) contents into the caches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants