Green’s Dictionary of Slang

golly n.3

[golly v.]

(Aus.) a lump of phlegm.

[Aus]B. Humphries Barry McKenzie [comic strip] in Complete Barry McKenzie (1988) 42: Them oysters looked more like the chef had puked up a dozen king sized green gollies.
L. Ryan Shearers 153: Gobber Ejaculation of saliva; a golly [GAW4].
[Aus]J. Byrell Lairs, Urgers & Coat-Tuggers 15: ‘Och aye, me wee dear chappies,’ says Lachie MacLochee, hawking heavily and letting go a huge golly at the grate.