[ 
https://issues.apache.org/jira/browse/GROOVY-11775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18038462#comment-18038462
 ] 

ASF GitHub Bot commented on GROOVY-11775:
-----------------------------------------

codecov-commenter commented on PR #2335:
URL: https://github.com/apache/groovy/pull/2335#issuecomment-3534482998

   ## 
[Codecov](https://app.codecov.io/gh/apache/groovy/pull/2335?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
 Report
   :x: Patch coverage is `68.18182%` with `7 lines` in your changes missing 
coverage. Please review.
   :white_check_mark: Project coverage is 66.9891%. Comparing base 
([`b6df8a1`](https://app.codecov.io/gh/apache/groovy/commit/b6df8a13ec94b9e410568cae8e87a745de275f6f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache))
 to head 
([`961370c`](https://app.codecov.io/gh/apache/groovy/commit/961370ce436194cd97053715ef1dfed3eda9fb4d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   | [Files with missing 
lines](https://app.codecov.io/gh/apache/groovy/pull/2335?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
 | Patch % | Lines |
   |---|---|---|
   | 
[...g/codehaus/groovy/reflection/MixinInMetaClass.java](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Freflection%2FMixinInMetaClass.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L3JlZmxlY3Rpb24vTWl4aW5Jbk1ldGFDbGFzcy5qYXZh)
 | 68.4210% | [4 Missing and 2 partials :warning: 
](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
 |
   | 
[src/main/java/groovy/lang/ExpandoMetaClass.java](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Fgroovy%2Flang%2FExpandoMetaClass.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9ncm9vdnkvbGFuZy9FeHBhbmRvTWV0YUNsYXNzLmphdmE=)
 | 66.6667% | [0 Missing and 1 partial :warning: 
](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
 |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   [![Impacted file tree 
graph](https://app.codecov.io/gh/apache/groovy/pull/2335/graphs/tree.svg?width=650&height=150&src=pr&token=1r45138NfQ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   ```diff
   @@                Coverage Diff                 @@
   ##               master      #2335        +/-   ##
   ==================================================
   - Coverage     66.9894%   66.9891%   -0.0003%     
   + Complexity      29330      29329         -1     
   ==================================================
     Files            1382       1382                
     Lines          116614     116607         -7     
     Branches        20432      20429         -3     
   ==================================================
   - Hits            78119      78114         -5     
   + Misses          32061      32059         -2     
     Partials         6434       6434                
   ```
   
   | [Files with missing 
lines](https://app.codecov.io/gh/apache/groovy/pull/2335?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
 | Coverage Δ | |
   |---|---|---|
   | 
[src/main/java/groovy/lang/ExpandoMetaClass.java](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Fgroovy%2Flang%2FExpandoMetaClass.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9ncm9vdnkvbGFuZy9FeHBhbmRvTWV0YUNsYXNzLmphdmE=)
 | `76.6187% <66.6667%> (-0.0420%)` | :arrow_down: |
   | 
[...g/codehaus/groovy/reflection/MixinInMetaClass.java](https://app.codecov.io/gh/apache/groovy/pull/2335?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Freflection%2FMixinInMetaClass.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L3JlZmxlY3Rpb24vTWl4aW5Jbk1ldGFDbGFzcy5qYXZh)
 | `78.6667% <68.4210%> (+2.1235%)` | :arrow_up: |
   
   ... and [3 files with indirect coverage 
changes](https://app.codecov.io/gh/apache/groovy/pull/2335/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test 
Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, 
report on failures, and find test suite problems.
   - :package: [JS Bundle 
Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save 
yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>




> Stateful runtime mixins sometimes do not work properly
> ------------------------------------------------------
>
>                 Key: GROOVY-11775
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11775
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 4.0.26
>            Reporter: Björn Kautler
>            Assignee: Eric Milles
>            Priority: Major
>
> I have class {{A}} and class {{B}}.
> I {{mixin}} {{A}} to {{B}} using {{B.mixin(A)}}.
> {{A}} has a property {{X}}.
> Now I have a method {{M}} in a subclass of {{B}} which first calls a method 
> {{N}} of {{A}}, then another method {{O}} of {{A}}.
> Both calls happen linearly, both happen on the same thread, yet occasionally 
> the call to {{O}} hits a different instance of {{A}} than the call to {{N}} 
> and thus {{N}} and {{O}} work on a different instance of the field in {{A}}.
> From a quick look at the code and debug, the problem might maybe be, that the 
> {{MixinInMetaClass#managedIdentityConcurrentMap}} holds the {{B}} instances 
> that serve as key in soft references. So maybe if the heap gets exhausted 
> between calling {{N}} and {{O}}, the map entry is nuked by the garbage 
> collector and thus the {{O}} call creates a new {{A}} instance.
> If this is the case (or actually whatever else causes what I see), stateful 
> runtime mixins are quite flaky and should not be used unless this is fixed, 
> as you cannot rely on the state. Actually, I was not able to knit an MCVE by 
> intentionally triggering two OOME between the calls to {{N}} and {{O}}, so my 
> suspicion about the cause might not be correct.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to