It really depends on the personal code of the man. Although it wasn't life,"Lefty Guns" Ruggiero of Donnie Brasco fame refused several opportunities to lessen his 20 year sentence by flipping.Not only that,but even after finding out Pistone was an undercover FBI agent,he still vowed to "get that mother****er Donnie if it's the last thing I do".

He was so embarrassed by the loss of face he suffered by bringing Pistone in,that he was not about to lose his honor by also flipping.

After being released early for medical reasons,Lefty was approached by the Donnie Brasco producers. They offered him a million dollars to cut a brief promo for the film. Despite being terminally ill and broke,Lefty threatened to spit in their faces,and to do worse than that if they ever approached him again.
I think no matter what his sentence would have been, Lefty wouldn't have talked.