Global variables: loosing the value

How do I know when the memory is "out"????
Shouldn't the arduino IDE tell me?

How would it know?