Skip to content

Conversation

@kocdemir
Copy link
Collaborator

This fixes a memory leak with the shader compilation requests made on the server, which can lead to high memory consumption due to redundant requests when the compilations are failed.
Also changed the return value check on spvc_context_create_compiler to cover other error codes.


default:
return "", sourceLanguage, false, errors.New("Source language not supported")
retError = errors.New("Source language \"" + sourceLanguage + "\" is not supported: ")
Copy link
Member

Choose a reason for hiding this comment

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

is there supposed to be something after the :?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch Pascal! I was initially going to add sourceLanguage to the end. Will fix that and merge.
Thanks

@kocdemir kocdemir merged commit 7f338f1 into google:master May 13, 2022
@kocdemir kocdemir deleted the spvc_memleak branch May 13, 2022 15:10
rosasco-wk pushed a commit to rosasco-wk/agi that referenced this pull request Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants