It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Groovy Dynamic Memory Allocation ----- Deallocation

JIRA v5.2.2 Standalone

Question: With Groovy, is there a need to deallocate or free-up any dynamically allocated multi-dimensional arrays or collections? If so, can you provide any guidance? Please accept my apology if this is a question that reveals my inexperience.

Thanks for your consideration.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted

As Jozef said it's not anything you need to worry about, unless you have memory problems. You'd have to try quite hard to prevent stuff getting garbage collected.

Hi Jamie --- thanks so much for this! Have a great week!

I would say it is the same as in Java. See also this article about GroovyShell.

If your scripts are run in context of Scriptrunner, they are executed using eval() function and therefore only bindings variables would survive the single execution.

Jozef, thank you so much for this guidance -- and the links are exactly what I need. You read my intentions well (Scriptrunner context). Thanks again

Community showcase
Posted in Europe

Chris Cooke, Tom Harris, Old Street Solutions: Video online

Thanks to Tom Harris and Chris Cooke from Old Street Solutions for their intesting demo (No Slides!) about how they provide Jira Reporting for Everyone! They even have a public playground, if you don...

2 views 0 0
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you