-
Notifications
You must be signed in to change notification settings - Fork 14
8261547: Minor memory leak reported for Metal Rendering pipeline #182
Conversation
👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into |
@prsadhuk this pull request can not be integrated into git checkout JDK-8261547
git fetch https://git.openjdk.java.net/lanai master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
@prsadhuk This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 19 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
@prsadhuk you forgot the bug ID in the title of this PR (and thus the commit message) |
@@ -117,14 +117,16 @@ | |||
JNI_COCOA_ENTER(env); | |||
NSMutableArray * retArray = [NSMutableArray arrayWithCapacity:3]; | |||
[retArray addObject: [NSNumber numberWithInt: (int)displayID]]; | |||
[retArray addObject: [NSString stringWithUTF8String: JNU_GetStringPlatformChars(env, shadersLibName, 0)]]; | |||
NSString *str = JNU_GetStringPlatformChars(env, shadersLibName, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be of type char *
not NSString *
@@ -148,14 +150,16 @@ | |||
JNI_COCOA_ENTER(env); | |||
NSMutableArray * retArray = [NSMutableArray arrayWithCapacity:3]; | |||
[retArray addObject: [NSNumber numberWithInt: (int)displayID]]; | |||
[retArray addObject: [NSString stringWithUTF8String: JNU_GetStringPlatformChars(env, mtlShadersLib, 0)]]; | |||
NSString *str = JNU_GetStringPlatformChars(env, mtlShadersLib, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
char *
It runs fine for me on dual screens. I verified that it is hitting the call to |
SwingSet2, J2DDemo works fine with this change. |
I tested J2DDemo and SwingSet2 with graphics card switch from integrated to discrete GPU and other way round. No regression is observed. |
/integrate |
@prsadhuk Since your change was applied there have been 19 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 52c97e5. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Memory leak fix for couple of strings.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/lanai pull/182/head:pull/182
$ git checkout pull/182