Java GC (Allocation Failure)

“Allocation Failure” is a cause of GC cycle to kick in. “Allocation Failure” means that no more space left in Eden to allocate object. So, it is normal cause of young GC. Older JVM were not printing GC cause for minor GC cycles. “Allocation Failure” is almost only possible cause for minor GC. Another reason … Read more

malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))

malloc(sizeof(int)) means you are allocating space off the heap to store an int. You are reserving as many bytes as an int requires. This returns a value you should cast to int *. (A pointer to an int.) As some have noted, typical practice in C is to let implicit casting take care of this. malloc(sizeof(int*)) means you are allocating space off the heap … Read more

What exactly does the “u” do? “git push -u origin master” vs “git push origin master”

The key is “argument-less git-pull”. When you do a git pull from a branch, without specifying a source remote or branch, git looks at the branch.<name>.merge setting to know where to pull from. git push -u sets this information for the branch you’re pushing. To see the difference, let’s use a new empty branch: First, we push without -u: remote = <nickname> … Read more

A _disk_id.pod file appears on a windows flash drive

_disk_id.pod is created by Windows Live Movie Maker. I had accidentally changed my “choose default program …” settings which was causing the video files to open with the Windows Live Movie Maker program. Even if you do not do anything with the video in the Movie Maker program or save anything in it the program … Read more