I'd go more toward a defensive weapon produced locally by the wounded tissues to close the opening and bury an eventual boring larva. The cherry produces a gum which can look like an extruded form like that if there's a well defined opening, but more a globular if it's a deep and contaminated wound. It can be seen on the apricot trees too where some insects bore the twigs.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.